package java8;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/5/16.
 */
public class OrderNumGenerior {

    public String getOrderNum(){
        int i=0;
        SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
        return sdf.format(new Date())+(++i);
    }
}
